import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-test-ng-class',
  templateUrl: './test-ng-class.component.html',
  styleUrls: ['./test-ng-class.component.css']
})
export class TestNgClassComponent implements OnInit {
  public currentClasses = {};
  public canSave:boolean = true;
  public isUnChange:boolean = true;
  public isSpecial:boolean = true;
  constructor() { }

  ngOnInit() {
  }

  setCurrentClasses(){
    this.currentClasses = {
      'saveable':this.canSave,
      'modified':this.isUnChange,
      'special':this.isSpecial
    };
  }

}
